package com.miaoxun.domain.entity;


import javax.persistence.Id;

/**
 * 用户与角色对应关系
 * 
 * @author ruoshuisixue
 * @email ruoshuisixue@sina.com
 * @date 2017-11-17 14:32:05
 */
public class UserRole extends  BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id
	//
	private Long id;
	//用户ID
	private Long userId;
	//角色ID
	private Long roleId;

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：角色ID
	 */
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	/**
	 * 获取：角色ID
	 */
	public Long getRoleId() {
		return roleId;
	}

	@Override
	public String toString() {
		return "UserRole{" +
				"id=" + id +
				", userId=" + userId +
				", roleId=" + roleId +
				'}';
	}
}
